<?php
namespace catchAdmin\basics\model\search;

trait PortSearch
{
    public function searchPortNumAttr($query, $value, $data)
    {
        return $query->whereLike('port_num', $value);
    }
    public  function  searchTypeAttr($query, $value, $data)
    {
        return $query->where('type', $value);
    }

}